package com.hyt.it.ogt.ykcj.feign.pt;

import org.springframework.stereotype.Component;

import com.hyt.it.ogt.ykcj.common.exception.CustomException;
import com.hyt.it.ogt.ykcj.feign.model.Classification;
import com.hyt.it.ogt.ykcj.feign.model.ResultObjEntity;

import lombok.extern.slf4j.Slf4j;

/**
 * description
 *
 * @author yaojian
 * @createTime 2022/02/14
 */
@Component
@Slf4j
public class PtClientHystrix implements PtClient {

    @Override
    public ResultObjEntity<Classification> getTreelist() {
        log.error("调用查询分类列表失败。。。");
        throw new CustomException("无法获取分类列表数据！");
    }

}
